package cn.zjutleo.village_server.mapper;

import cn.zjutleo.village_server.dto.PolicyDto;
import cn.zjutleo.village_server.dto.PolicySelectDto;
import cn.zjutleo.village_server.entity.Policy;
import cn.zjutleo.village_server.vo.PolicyVo;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface PolicyMapper {
    int deleteByPrimaryKey(Integer policyId);

    int insert(Policy record);

    int insertSelective(PolicyVo record);

    PolicyVo selectByPrimaryKey(Integer policyId);

    int updateByPrimaryKeySelective(PolicyVo record);

    int updateByPrimaryKey(Policy record);

    List<PolicyDto> selectPolicyList(PolicySelectDto policySelectDto);

    Page<PolicyDto> selectPolicyPage(PolicySelectDto policySelectDto);
}
